package com.zr.controller;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.zr.service.MangerSelectService;

/**
 * 删除管理员信息控制
 * @author xl
 * 2016年5月24日下午12:28:14
 */
public class GetMangerDeleteController extends HttpServlet{
	MangerSelectService sss=new MangerSelectService();
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String tempIds=req.getParameter("getMangerDeleteIds");
		boolean flag=sss.deleteStudent(tempIds);
		PrintWriter pw=resp.getWriter();
		pw.write(flag+"");
	}
}
